using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for RoleBll
/// </summary>
public class RoleBll
{
	public RoleBll()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    #region Load role to the drop down list
    public void LoadRole(DropDownList dropDownList)
    {

        DataSet ds = SQLDAL.SQLHelper.GetDataSetUsingSP(CommandType.StoredProcedure,
            "sp_Role_List", "Role", null);
        dropDownList.DataSource = ds.Tables["Role"];
        dropDownList.DataTextField = "description";
        dropDownList.DataValueField = "roleID";
        dropDownList.DataBind();
    }
    #endregion
}
